﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using MvcContrib.TestHelper;
using NUnit.Framework;

namespace BDD.TicTacToe.Core.Tests.Controller_Specs
{
    [TestFixture]
    public class When_asking_for_the_welcome_page : with_given_MenuController
    {
        private ActionResult _result;

        [SetUp]
        public void When()
        {
            _result = Sut.Index();
        }

        [Test]
        public void Then_a_view_result_should_be_returned()
        {
            _result.AssertResultIs<ViewResult>();
        }
      
        [Test]
        public void Then_the_Index_view_should_be_returned()
        {
            _result.AssertViewRendered().ForView("");
        }     
    }
}
